package com.yiren.dbaa.module.exam.api;

import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.baidu.mapapi.map.BaiduMap;
import com.baidu.mapapi.map.TextureMapView;
import com.yiren.backstage.currency.bean.CarStateBean;
import com.yiren.backstage.currency.bean.GpsInfoBean;
import com.yiren.backstage.currency.entity.LineInfoEntity;
import com.yiren.dbaa.view.TrajectoryMapView;

/**
 * Describe 考试页面高低精度地图处理接口
 *
 * @author WRX
 * @date 2022/7/15
 */
public interface IExamViewApi {

    /**
     * 获取高精度轨迹显示框的布局参数
     *
     * @param scale
     * @return
     */
    RelativeLayout.LayoutParams getMapRelativeParam(int scale);

    /**
     * 获取高精度轨迹mapview
     *
     * @param mapView
     * @return
     */
    TrajectoryMapView getGjdMapView(TrajectoryMapView mapView);

    /**
     * 获取低精度百度地图mapview
     *
     * @return
     */
    TextureMapView getDjdMapView();

    /**
     * 获取百度地图
     *
     * @param mBaiduMap
     * @param tmvMapView
     * @return
     */
    BaiduMap getBaiduMap(BaiduMap mBaiduMap, TextureMapView tmvMapView);

    /**
     * 绘制百度地图标识物
     *
     * @param lineInfo  当前的线路
     * @param mBaiduMap
     */
    void drawBaiduMarker(LineInfoEntity lineInfo, BaiduMap mBaiduMap);

    /**
     * 更新百度地图的位置
     *
     * @param gpsInfo
     * @param mBaiduMap
     */
    void updateLocationInfo(GpsInfoBean gpsInfo, BaiduMap mBaiduMap);

    /**
     * 设置车信号状态
     *
     * @param llExamMain
     * @param carState
     */
    void carStateImageSwitch(LinearLayout llExamMain, CarStateBean carState);

    /**
     * 设置不同灯光下不同的车标
     */
    int setLightCarInfo(TrajectoryMapView mapView, CarStateBean carState);

    /**
     * 设置符合配置？条件的里程（米）
     */
    void setConditionMileage(TextView tv, float mileage);
}
